/*
 * @Description: 
 * @Author: ljl
 * @Date: 2024-09-25 15:22:59
 * @LastEditors: rendc
 * @LastEditTime: 2024-09-25 15:22:59
 */
/**
 * Test04Replace
 */
public class Test04Replace {
    public static void main(String[] args) {
        String str = "Hello,World";
        String newStr = str.replace('l', 'L');
        String newStr1 = str.replace("World", "java");
        System.out.println(newStr);
        System.out.println(newStr1);
    }
}